package Java多线程和并发.CAS和Unsafe和原子类详解;

/**
 * 使用不同修饰符的字段进行测试
 */
class DateDemo{

    public volatile int publicVar = 3;

    protected volatile int protectedVar = 4;

    private volatile int privateVar = 5;

    public volatile static  int staticVar = 10;

    public final int finalVar = 19;

    public volatile Long longVar = 18L;

    public static void main(String[] args) {
    }
}
